home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 96 / PC Zone #096.7z / Dppcz1200.mdf / Demos / Gunlok / data1.cab / Program_Executable_Files / scripts / nanofrag.gsh < prev    next >
Text File  |  2000-09-09  |  3KB  |  129 lines

  1. // defines the weapon Wpn_Nanofrag
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_NANOFRAG_GSH
  8. #define INCLUDED_NANOFRAG_GSH
  9.  
  10. #include "defaults.gsh"
  11.  
  12. ////////////////////////////////////////////////////////////////////////////////////
  13.  
  14. light Lit_Nanofrag
  15. {
  16.     red             4
  17.     green           5
  18.     blue            3
  19.     specular red    0.3
  20.     specular green    0.4
  21.     specular blue    0.2
  22.     range           64
  23. }
  24.  
  25. pgenerator Pgn_Nanofrag
  26. {
  27.     type explosion
  28.     life infinite    // well, it lasts as longs as the projectile it's attached to anyway
  29.     rate 30
  30.     generategenerators     yes
  31.     // stream direction
  32.     x 0 y 0 z 0
  33.     // particle colour
  34.     red 0.2 green 0.6 blue 0.7 alpha 0.7
  35.     start scale 0.6
  36.     end scale 0.0
  37. }
  38.  
  39. projectile Prj_Nanofrag
  40. {
  41.     gravity        no // is this missile affected by gravity
  42.     damage        99 // in strength points
  43.     //blast damage    99 // proximity damage
  44.     //blast range    2 // in metres - off - because otherwise fragboulders brake
  45.     hit_light    Lit_Nanofrag    // just for the explosion
  46.     sound        nanofrag sound
  47.     max range    600
  48. }
  49.  
  50. role Rol_Nanofrag : Rol_DefaultProjectile
  51. {
  52.     pgen        Pgn_Nanofrag
  53.  
  54.     projectile    Prj_Nanofrag
  55.  
  56.     limit        80
  57.  
  58.     identifier      "nanofrag_projectile"
  59. }
  60.  
  61. // NANOFRAG
  62. ammo
  63. {
  64.     weapon type        nanofrag
  65.     ammo type        nanotech dismantler
  66.  
  67.     round time        4
  68.     reload time        5
  69.     life timer        0
  70.     magazine size    5
  71.     sound            nanofrag sound
  72.  
  73.     file            "User Interface/CommWheel01.RIF"    // command wheel icon
  74.     name            "sub ammo nano ra"
  75.  
  76.     projectile        Rol_Nanofrag // what it fires
  77.     firing speed    10 // m/s
  78. }
  79.  
  80. ////////////////////////////////////////////////////////////////////////////////////
  81.  
  82. shape Shp_Nanofrag_Pickup
  83. {
  84.     file "objects\nanofrag pickup a.rif"
  85.     name "nanofrag pickup a"
  86. }
  87.  
  88. hierarchy Hcy_Nanofrag_Inventory_Pickup
  89. {
  90.     file "objects\nanofrag.rif"
  91.     name "nanofrag"
  92.     hotspot none
  93. }
  94.  
  95. character Chr_Nanofrag_Pickup : Chr_Default
  96. {
  97.     turning speed   0    // this is in revolutions per second
  98.     walking speed   0    // this is in animation cycles per second
  99.     weapon            nanofrag
  100.     strength        10    // initial strength points
  101.     aim                0
  102.     aggression        0.41    // 4 = weapon pickup
  103. }
  104.  
  105. role Rol_Nanofrag_Pickup : Rol_DefaultPickup
  106. {
  107.     shape            Shp_Nanofrag_Pickup
  108.  
  109.     inventory shape    Hcy_Nanofrag_Inventory_Pickup
  110.  
  111.     character        Chr_Nanofrag_Pickup
  112.  
  113.     identifier        "nanofrag"
  114.  
  115.     destructibility    Des_Explode
  116.  
  117.     armour            25
  118.  
  119.     limit            2
  120.  
  121.     description        nanofrag description
  122.  
  123.     pickup name        nanofrag pickup
  124. }
  125.  
  126. ////////////////////////////////////////////////////////////////////////////////////
  127.  
  128. // end wrapper - for preventing multiple or recursive inclusions
  129. #endif // !INCLUDED_NANOFRAG_GSH